//import java.util.Vector;


public class Encrypt {
	public static byte[] stringToBytesASCII(String str) {
		char[] buffer = str.toCharArray();
		int len = buffer.length;
		byte[] b = new byte[len];
		
		for (int i = 0; i < len; i++) {
			b[i] = (byte) buffer[i];
		}
		return b;
	}
	
	public static String BytesToStringASCII(byte[] str) {
		int len = str.length;
		char[] result = new char[len];
		for (int i = 0; i < len; i++) {
			result[i] = (char)str[i];
		}
		return new String(result);
	}
	
}